package com.hibernate;

import java.util.Date;

public class Transaction {

	public static enum Type {
		DEBIT, CREDIT
	}

	private long id;
	private Date date;
	private double amount;
	private Type type;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}
	
	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public double getAmount() {
		return amount;
	}

	public void setAmount(double amount) {
		this.amount = amount;
	}

	public Type getType() {
		return type;
	}

	public void setType(Type type) {
		this.type = type;
	}
}
